package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.OrderTO;
import com.itheima.pojo.Orderdev;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderMapper {

    /**
     * 查询预约列表
     * @param orderdev
     * @return
     */
    Page<Orderdev> listpage(Orderdev orderdev);

    /**
     * 修改状态
     * @param orderTO
     */
    @Update("update t_order set  orderStatus=#{orderStatus} where id=#{id}")
    void update(OrderTO orderTO);
}
